#ifndef OLED_H
#define OLED_H
#include "stm32f1xx_hal.h"

#define OLED_I2C_ADDR 0x78
#define OLED_WIDTH 128
#define OLED_HEIGHT 64


extern I2C_HandleTypeDef hi2c1;
extern const uint8_t Hanzi_Zhang[];	//张
extern const uint8_t Hanzi_Chun[];//春
extern const uint8_t Hanzi_Tian[];//天


void OLED_Init(void);//初始化          
void OLED_WriteCmd(uint8_t cmd); //发送控制指令
void OLED_WriteData(uint8_t data); //发送显示数据
void OLED_Clear(void);       //清屏
void OLED_SetPos(uint8_t x, uint8_t y); //设置显示坐标
void OLED_ShowHanzi(uint8_t x,uint8_t y, const uint8_t *hanzi);//显示16*16汉字


#endif


